package com.zhuhjay.common.base.constant;

/**
 * @author ZhuHJay
 * @date 2023/3/4 16:06
 */
public class TimeConstant {

    /** 时间常量 */
    public static final int SECOND = 1000;
    public static final int MINUTE = 60 * SECOND;
    public static final int HOUR = 60 * MINUTE;
    public static final int DAY = 24 * HOUR;
    public static final long WEEK = 7 * DAY;
    public static final long MONTH = 30L * DAY;
    public static final long YEAR = 365L * DAY;

    /** 时间格式常量 */
    public static final String DATE_FORMAT = "yyyy-MM-dd";
    public static final String TIME_FORMAT = "HH:mm:ss";
    public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_TIME_FORMAT_UTC = "yyyy-MM-dd'T'HH:mm:ss.SSS";

}
